<%@ page import="static sun.misc.MessageUtils.out" %><%--
  Created by IntelliJ IDEA.
  User: 86134
  Date: 2024/10/9
  Time: 9:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增理财信息</title>
<style>
    h1 {
        font-weight: bold;
    }
</style>
</head>
<body>
    <h1>新增理财信息</h1>
    <form action="add" method="post" onsubmit="return validateForm()">
        产品代码：<input type="text" name="id" required><br>
        风险评级：<select name="risk" required>
            <option value="">--请选择--</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
        </select><br>
        预期收益：<input type="text" name="income" required><br>
        发售起始日：<input type="date" name="saleStarting" required><br>
        发售截止日：<input type="date" name="saleEnd" required><br>
        产品到期日：<input type="date" name="end" required><br>
        <input type="submit" value="保存">
    </form>
    <%
        String error = request.getParameter("error");
        if ("true".equals(error)) {
//            out.println("<script>alert('数据保存失败，请检查输入数据！')</script>");
        }
    %>
</body>
</html>

